for nodeid in `kubectl --kubeconfig={{ KUBERNETES_CONFIG_PATH }}/{{ KUBECTL_CONFIG_FILE }} get csr | grep Pending | awk '{print $1}'`
do
  kubectl --kubeconfig={{ KUBERNETES_CONFIG_PATH }}/{{ KUBECTL_CONFIG_FILE }} certificate approve ${nodeid}
done
